#ifndef __CLIENTHANDLER_H__
#define __CLIENTHANDLER_H__

#if _MSC_VER > 1000
# pragma once
#endif

#include "auto_vector.h"
#include "HandlerBase.h"
#include "SyncLock.h"

struct ClientHandler : public HandlerBase
{
	ClientHandler(const char* bucket, int affinity, int clientTimeout);

	void Reset();
	bool ServerIsValid();
	bool Sync();

	int m_clientTimeout;
	std::auto_ptr<SSyncLock> m_clientLock;
	std::auto_ptr<SSyncLock> m_srvLock;
};

#endif // __CLIENTHANDLER_H__
